<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>  
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>search</title>
</head>
<body>
	<table>
			<tr>
			<c:forEach var="article" items="${list}">
				<td>
					<table>
					<tr height="250">
						<td width="250" colspan="3">
							<c:if test="${!empty article.p_listimage}">
							<img src="../adminproductupload/${article.p_listimage}" width="250" height="250">
							</c:if>
						</td>
					</tr>
					<tr>
						<%-- <td align="center" width="10%">
							${number}
							<c:set var="number" value="${number-1}"/>   
						</td> --%>
						<td>상품명 : <a href="detailPro.do?p_code=${article.p_code}#pro">${article.p_name}</a></td>
						<td>남은 시간 : ${article.p_time}</td>
						<td>
						<c:if test="${article.p_amount > 0}">
						수량 : ${article.p_amount} 개
						</c:if>
						<c:if test="${article.p_amount == 0}">
						수량 : 0 개
						</c:if>
						</td>  
					</tr>
					</table>
				</td>
					<c:if test="${number%5 == 1}">
					<tr><td></td></tr>
					</c:if>
			</c:forEach>
			</tr>
			<c:if test="${count == 0 }">
				<tr align="center">
					<td colspan="3">찾으시는 상품이 없습니다.</td>
				</tr>
			</c:if>
		</table>
		<br><br><br>
<div id=pageU align="center">${pagingHtml}</div>
</body>
</html>    